package org.threebitsoftware.tbb.module.webservice;

import java.net.MalformedURLException;

import org.threebitsoftware.tbb.dao.Contact;

import com.google.gdata.util.AuthenticationException;

public class GcontactTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			Gcontacts gContacts = new Gcontacts("john.3bits@gmail.com","3b1t0fwar3");
			
			Contact[] listOfContacts = gContacts.getContacts();
			
			//System.out.println(listOfContacts.length);
			
			gContacts.publishContacts(listOfContacts);
			
		} catch (AuthenticationException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (MalformedURLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}

}
